<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">模型管理</a></li>
        <!-- <li><a href="{:url('arctype/add')}">添加URL规则</a></li> -->
    </ul>
    <form class="js-ajax-form" action="{:url('arctype/listOrder')}" method="post">
        <div class="table-actions">
            <button type="submit" class="btn btn-primary btn-sm js-ajax-submit">排序</button>
        </div>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">排序</th>
                <th width="50">ID</th>
                <th>模型名称</th>
                <th>模型标识</th>
                <th>启用</th>
                <th width="130">操作</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $statuses=array('0'=>"已禁用","1"=>"已启用");
                $types=array('1'=>"自定义","2"=>"别名定义");
            </php>
            <foreach name="arctype" item="vo">
            
                <tr>
                    <td>
                        <input class="input-order" type="text" value="{$vo.list_order}" readonly>
                    </td>
                    <td>{$vo.id}</td>
                    <td>{$vo.title}</td>
                    <td>{$vo.table}</td>
                    <td>{$statuses[$vo['status']]}</td>
                    <td>
                        <a href="{:url('arctype/channel_index',array('id'=>$vo['id']))}">内容字段</a>
<!--                        <eq name="vo.status" value="1">-->
<!--                            <a href="{:url('arctype/channel_ban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn"-->
<!--                               data-msg="确定禁用吗？">禁用</a>-->
<!--                            <else/>-->
<!--                            <a href="{:url('arctype/channel_ban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn"-->
<!--                               data-msg="确定启用吗？">启用</a>-->
<!--                        </eq>-->
                        <!-- <a href="{:url('arctype/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">删除</a> -->
                    </td>
                </tr>
            </foreach>
            </tbody>
            <tfoot>
            <tr>
                <th width="50">排序</th>
                <th width="50">ID</th>
                <th>模型名称</th>
                <th>模型标识</th>
                <th>启用</th>
                <th width="130">操作</th>
            </tr>
            </tfoot>
        </table>
        <div class="table-actions">
            <button type="submit" class="btn btn-primary btn-sm js-ajax-submit">排序</button>
        </div>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>